import Mock from 'mockjs'

Mock.mock('/api/user/routers?id=1', 'get', () => {
	return {
		code: 200,
		data: [
			{
				hidden: false,
				name: 'article',
				type: '0',
				path: '/article',
				component: null,
				meta: { title: '文章管理', icon: 'Tickets', cache: true, link: null },
				children: [
					// {
					// 	hidden: false,
					// 	name: 'test',
					// 	type: '0',
					// 	path: '/article/test',
					// 	component: '',
					// 	meta: { title: '测试二级目录', icon: 'abc', cache: true, link: null },
					// 	children: [
					// 		{
					// 			hidden: false,
					// 			name: 'context',
					// 			type: '1',
					// 			path: '/article/test/context',
					// 			component: '/article/test/Context/Context',
					// 			meta: { title: '三级菜单', icon: null, cache: true, link: null }
					// 		}
					// 	]
					// },
					{
						hidden: false,
						name: 'list',
						type: '1',
						path: '/article/list',
						component: '/article/List/List',
						meta: { title: '文章列表', icon: null, cache: true, link: null }
					},
					{
						hidden: false,
						name: 'content',
						type: '1',
						path: '/article/content',
						component: '/article/Content/Content',
						meta: { title: '编辑文章', icon: null, cache: true, link: null }
					}
				]
			},
			{
				hidden: false,
				name: 'system',
				type: '0',
				path: '/system',
				component: null,
				meta: { title: '系统管理', icon: 'Setting', cache: true, link: null },
				children: [
					{
						hidden: false,
						name: 'user',
						type: '1',
						path: '/system/user',
						component: '/system/User/User',
						meta: { title: '用户管理', icon: null, cache: true, link: null }
					},
					{
						hidden: false,
						name: 'role',
						type: '1',
						path: '/system/role',
						component: '/system/Role/Role',
						meta: { title: '角色管理', icon: null, cache: true, link: null }
					},
					{
						hidden: false,
						name: 'menu',
						type: '1',
						path: '/system/menu',
						component: '/system/Menu/Menu',
						meta: { title: '菜单管理', icon: null, cache: true, link: null }
					},
					{
						hidden: false,
						name: 'dict',
						type: '1',
						path: '/system/dict',
						component: '/system/Dict/Dict',
						meta: { title: '字典管理', icon: null, cache: true, link: null }
					}
				]
			},
			{
				hidden: false,
				name: 'about',
				type: '1',
				path: '/about',
				component: '/About/About',
				meta: { title: '关于项目', icon: 'CollectionTag', cache: true, link: null }
			},
			{
				hidden: true,
				name: 'aboutme',
				type: '1',
				path: '/system/aboutme',
				component: '/system/AboutMe/AboutMe',
				meta: { title: '信息设置', icon: null, cache: true, link: null }
			}
		],
		msg: '查询成功'
	}
})
